/**
* @file          : sl_Niv.h
* @author        : mcu Lab 
* @date          : mm/dd/yyy
* @brief         : This file is niv define.
* @version       : Ver. 1.00

* H/W Platform       : SL_FOC FOR MOTOR CONCTROL

 *------------------------------------------------------------------------------
 
 * Compiler info     :keil v4
 
 *------------------------------------------------------------------------------
 
Note: In this software, the function is used in motor control.

*-------------------------------------------------------------------------------

*  History:  

*              mm/dd/yyyy ver. x.y.z author

*              mm1/dd1/yyyy1 ver. x.y.z author1

*------------------------------------------------------------------------------
* @attention
 * THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
* AS A RESULT, SLMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
* INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
* CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
*
* THIS SOURCE CODE IS PROTECTED BY A LICENSE.
* FOR MORE INFORMATION PLEASE CAREFULLY READ THE LICENSE AGREEMENT FILE LOCATED
* IN THE ROOT DIRECTORY OF THIS FIRMWARE PACKAGE.

* <h2><center>&copy; COPYRIGHT 2015 SLMicroelectronics</center></h2>
******************************************************************************
*/

/******************************************************************************/

#ifndef __SL_NIV_H__
#define __SL_NIV_H__

/********************************************************************************
 * Include section
 *******************************************************************************/
#include <stdint.h>


/********************************************************************************
 * Typedefs, structs and enums
 *******************************************************************************/
struct IDLE_CNT_STRCT {           /**< count for idle static          */
  uint32_t  u32IdleCnt4C0;        /**< idle count for core0           */
  uint32_t  u32IdleCnt4C1;        /**< idle count for core1           */
  uint32_t  u32IdleStatiscCnt4C0; /**< idle count for core0 statisc   */
  uint32_t  u32IdleStatiscCnt4C1; /**< idle count for core1 statisc   */
  uint32_t  u32tickCnt1ms;        /**< tick count under 1ms condition */
};
/********************************************************************************
 * Constants and macros
 *******************************************************************************/


/********************************************************************************
 * Variables
 *******************************************************************************/
extern uint32_t g_u32SysTickNumb;
extern struct IDLE_CNT_STRCT sIdleCnt;

 /********************************************************************************
 * prototypes of the functions
 *******************************************************************************/

/*---------------------------------- End of the file ---------------------------------*/
#endif /* __SL_NIV_H__ */
